<!DOCTYPE html>
<style>
<!--
.form-control{
width: 50%;
}
-->
</style>

<div class="panel-body">

<div class="row">
    <div class="col-lg-12">
        <h1><i class="fa fa-edit"></i> Add/Edit Content</h1>
        <ol class="breadcrumb">
            <li><a href="#/admin/dashboard/"><i class="fa fa-dashboard"></i> Dashboard</a></li>
             <li><a href="#/admin/content/list"><i class="fa fa-list-alt"></i> Content Management</a></li>
            <li class="active"><i class="fa fa-edit"></i> Add/Edit Content</li>
        </ol>
    </div>
</div>

<div class="row">
    <div class="col-lg-12">
        <form role="form"  ng-submit="save()"><div class="panel panel-default" >
            <fieldset>
            
            <div class="panel-body">
<!--             <fieldset> -->
<!--             <div class="col-lg-6"> -->
                <div class="form-group">
                    <label>Title Name</label>
                    <input id="title" class="form-control" placeholder="Enter title name" ng-model="fieldData.title" required>
                </div>
                <div class="form-group">
                    <label>Alias</label>
                    <input class="form-control" placeholder="Enter alias" ng-model="fieldData.alias" required>
                </div>
                <div class="form-group">
                    <label>Title Alias</label>
                    <input class="form-control" placeholder="Enter title alias" ng-model="fieldData.title_alias" required>
                </div>
                <div class="form-group">
                    <label>Categories</label>
                    <select class="form-control" id="catid" ng-model="fieldData.catid" required>
    						<option ng-repeat="c in categories" value="{{c.id}}">{{c.name}}</option>
  					</select>
                </div>
                <div class="form-group">
                    <label>Publish date</label>
                    <input id="publishdate" ng-model="fieldData.publishdate" class="form-control datepicker"  required/>
                </div>
                <div class="form-group">
                    <label>Status</label>
                    <label>Status</label><br>
	                    <label class="radio-inline" >
	                        <input type="radio"  id="optActive" ng-value="1" ng-model="fieldData.status" checked> Active
	                    </label>
	                    <label class="radio-inline" >
	                        <input type="radio"  id="optInactive" ng-value="0" ng-model="fieldData.status">
	                        Inactive
	                    </label>
                </div>
                
                <div class="form-group">
                    <label>Intro text</label>
                    <textarea rows="5" class="form-control ckeditor" id="introtext" name="introtext" ng-model="fieldData.introtext" ></textarea>
                </div>
                <div class="form-group">
                    <label>Full text</label>
                    <textarea rows="5" class="form-control ckeditor" id="fulltext" name="fulltext" ng-model="fieldData.fulltext"></textarea>
                </div>
                
			</div>
			</div>
				
                 <div class="form-group">                   
                    <button type="button" class="btn btn-primary" onClick= "location = '#/admin/content/list'; "><i class="fa fa-hand-o-left"></i> Back</button>
                    <button type="submit" class="btn btn-primary" ><i class="fa fa-save"></i> Save</button>
                     
                </div>
                <br/>
            </fieldset>
        </form>
    </div>
</div>

</div>
